package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Finance;
import com.example.demo.entity.Notice;
import org.apache.ibatis.annotations.Select;

public interface NoticeMapper extends BaseMapper<Notice> {
    // 根据标题查询公告
    @Select("SELECT number, title, content,noticedate FROM notice WHERE title = #{title}")
    Finance findBytitle(String title);
}